<?php


namespace app\appa\validate;


use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
//        'members_id' => 'require',
        'pet_id' => 'require',
        'address_id' => 'require',
//        'mastser_id' => 'require',
//        'master_id' => 'require',
//        'mastser_name' => 'require',
        'num' => 'require',
//        'price' =>'require',
        'pay_type' => 'require',

    ];
    protected $message = [
//        'members_id.require' => '用户id不能为空',
        'pet_id.require' => '宠物id不能为空',
        'address_id.require' => '收货地址id不能为空',
//        'mastser_id.require' => '服务id不能为空',
//        'dp.require' => '首期月付不能为空',
//        'mastser_name.require' => '服务名称不能为空',
        'num.require' => '数量不能为空',
        'pay_type.require' => '支付方式不能为空',


    ];
    protected $scene = [
        'add' => ['pet_id','address_id','num','pay_type'],
    ];

}